import request from '@/utils/request'

const api = {
        apipath: '/publicMailList',
    }
    // 查询
export function getList(params) {
    return request({
        url: api.apipath + '/list',
        method: 'get',
        params: params
    })
}
// 查询详情
export function getInfo(unid) {
    return request({
        url: api.apipath + '/selectOne/' + unid,
        method: 'get'
    })
}
// 修改
export function saveInfo(params) {
    return request({
        url: api.apipath + '/save',
        method: 'post',
        data: params
    })
}
// 删除
export function deleteInfo(params) {
    return request({
        url: api.apipath + '/delete',
        method: 'delete',
        params: params
    })
}
// 导出
export function exportBook(parameter) {
    return request({
        url: api.apipath + '/export',
        method: 'get',
        params: parameter
    })
}